Generalized Data Structure Synthesis
نویسندگان
چکیده
Data structure synthesis is the task of generating data structure implementations from high-level specifications. Recent work in this area has shown potential to save programmer time and reduce the risk of defects. Existing techniques focus on data structures for manipulating subsets of a single collection, but real-world programs often track multiple related collections and aggregate properties such as sums, counts, minimums, and maximums. This paper shows how to synthesize data structures that track subsets and aggregations of multiple related collections. Our technique decomposes the synthesis task into alternating steps of query synthesis and incrementalization. The query synthesis step implements pure operations over the data structure state by leveraging existing enumerative synthesis techniques, specialized to the data structures domain. The incrementalization step implements imperative state modifications by re-framing them as fresh queries that determine what to change, coupled with a small amount of code to apply the change. As an added benefit of this approach over previous work, the synthesized data structure is optimized for not only the queries in the specification but also the required update operations. We have evaluated our approach in four large case studies, demonstrating that these extensions are broadly applicable.
منابع مشابه
Structure formation and generalized second law of thermodynamics in some viable f(R)-gravity models
We investigate the growth of matter density perturbations as well as the generalized second law (GSL) of thermodynamics in the framework of f(R)-gravity. We consider a spatially flat FRW universe filled with the pressureless matter and radiation which is enclosed by the dynamical apparent horizon with the Hawking temperature. For some viable f(R) models containing the Starobinsky, Hu-Sawicki, Exp...
متن کاملStatistical Modeling for Oblique Collision of Nano and Micro Droplets in Plasma Spray Processes
Spreading and coating of nano and micro droplets on solid surfaces is important in a wide variety of applications including plasma spray coating, ink jet printing, DNA synthesis and etc. In spraying processes, most of droplets collide obliquely to the surface. The purpose of this article is to study the distribution of nano and micro droplets spreading when droplets impact at an oblique a...
متن کاملSpatial structure of breast cancer using Poisson generalized linear mixed model in Iran
Background: Breast cancer is one of the most common diseases in women and causes more deaths rather than other cancers. The increasing trend of breast cancer in Iran makes clear the need of extensive breast cancer research in this area. Some studies showed that in the variety countries and even in the different areas in one country has different risk of breast cancer incidence and this is a rea...
متن کاملReversible Logic Synthesis with Cascades of New Family of Gates
Abstract: Reversible circuits are currently on of top approaches to power minimization and the one whose importance will be only growing with time. In this paper, the well known Feynman gate is generalized to k*k gate and a new generalized k*k family of reversible gates is proposed. A synthesis method for multi-output SOP function using cascades of the new gate family is presented. For utilizin...
متن کاملParameter Estimation in Spatial Generalized Linear Mixed Models with Skew Gaussian Random Effects using Laplace Approximation
Spatial generalized linear mixed models are used commonly for modelling non-Gaussian discrete spatial responses. We present an algorithm for parameter estimation of the models using Laplace approximation of likelihood function. In these models, the spatial correlation structure of data is carried out by random effects or latent variables. In most spatial analysis, it is assumed that rando...
متن کامل